<?xml version="1.0" encoding="ISO-8859-1" ?>

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<%@include file="../../context.jsp"%>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Daily Sector Data</title>
<%@include file="../common_Admin_imports.jsp"%>
<%@include file="../common_loding_imports.jsp"%>
<script type="text/javascript">
	$(document).ready(function() {
		$("#datepicker").datepicker({
			dateFormat : "yy-mm-dd"
		});
	});
</script>
</head>
<body>
	<div class="main_wrapper">
		<div class="header_wrapper">
			<div class="container-fluid">
				<div class="header_inner_wrapper clearfix">
					<div class="row-fluid">
						<div class="header_left span4">Daily Sector Data Setup</div>
						<jsp:include page="../common_link.jsp" />
					</div>
				</div>
				<div class="content_wrapper">
					<div class="container-fluid">
						<div class="row-fluid">
							<div class="input_box_wrapper">
								<div class="input_box_wrapper_text_aery">
									<form:form method="POST" commandName="dailySectorData"
										action="${pageContext.request.contextPath}/admin/dailysectordata/add/process.html"
										class="form-horizontal">
										<div class="input_box_wrapper_left span6">
											<div>${message}</div>
											<div class="control-group">
												<label class="control-label" for="inputEmail">Sector
													:</label>
												<div class="controls">
													<form:select itemValue="id" itemLabel="name"
														path="sector.id" items="${sectorsMap}">
													</form:select>
												</div>
											</div>
											<div class="control-group">
												<label class="control-label" for="inputEmail">Date :</label>
												<div class="controls">
													<form:input path="date" id="datepicker" />
												</div>
											</div>
											<div class="control-group">
												<label class="control-label" for="inputEmail">Closing
													Value :</label>
												<div class="controls">
													<form:input path="closingValue" />
												</div>
												<div class="controls">
													<form:errors path="closingValue" cssClass="error"></form:errors>
												</div>
											</div>
											<div class="control-group">
												<label class="control-label" for="inputEmail">Volume
													:</label>
												<div class="controls">
													<form:input path="volume" />
												</div>
												<div class="controls">
													<form:errors path="volume" cssClass="error"></form:errors>
												</div>
											</div>
											<div class="control-group">
												<label class="control-label" for="inputEmail">Turnover
													:</label>
												<div class="controls">
													<form:input path="turnOver" />
												</div>
												<div class="controls">
													<form:errors path="turnOver" cssClass="error"></form:errors>
												</div>
											</div>
											<input type="submit" value="Save"
												class="btn btn-inverse save" />
										</div>
										<div class="input_box_wrapper_right span6">
											<div class="control-group">
												<label class="control-label" for="inputEmail">no Of
													Trades :</label>
												<div class="controls">
													<form:input path="noOfTrades" />
												</div>
												<div class="controls">
													<form:errors path="noOfTrades" cssClass="error"></form:errors>
												</div>
											</div>

											<!--  -->
											<div class="control-group">
												<label class="control-label" for="inputEmail">Open :</label>
												<div class="controls">
													<form:input path="open" />
												</div>
												<div class="controls">
													<form:errors path="open" cssClass="error"></form:errors>
												</div>
											</div>
											<div class="control-group">
												<label class="control-label" for="inputEmail">High :</label>
												<div class="controls">
													<form:input path="high" />
												</div>
												<div class="controls">
													<form:errors path="high" cssClass="error"></form:errors>
												</div>
											</div>

											<!--  -->
											<!--  -->
											<div class="control-group">
												<label class="control-label" for="inputEmail">Low :</label>
												<div class="controls">
													<form:input path="low" />
												</div>
												<div class="controls">
													<form:errors path="low" cssClass="error"></form:errors>
												</div>
											</div>
										</div>
									</form:form>
								</div>
							</div>
						</div>
						<div class="input_box_wrapper_left span5">
							<b class="file_name"> Upload a file:</b>
							<form:form class="form-horizontal" method="POST"
								modelAttribute="uploadFile" enctype="multipart/form-data"
								action="${pageContext.request.contextPath}/admin/dailysectordata/add/file_process.html">
								<div>Please select a file to upload :</div>
								<div>
									<input type="file" name="file" /><input
										class="btn btn-inverse save" id="btnSubmitAll" type="submit"
										value="upload" />
								</div>
							</form:form>
						</div>
						<div class="input_box_wrapper_right span5">
							<b class="file_name"> Upload a file:</b>
							<form:form class="form-horizontal" method="POST"
								modelAttribute="uploadFile" enctype="multipart/form-data"
								action="${pageContext.request.contextPath}/admin/dailysectordata/add/sector_process.html">
								<div>Please only one sector file :</div>
								<div>
									<input type="file" name="file" /><input
										class="btn btn-inverse save" id="btnSubmitCompany"
										type="submit" value="upload" />
								</div>
							</form:form>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
	<%@include file="../components/loading.jsp"%>
</body>
</html>